<template>
  <div class="app-container">
    <!-- 切换 -->
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="仪器期间核查列表" name="1">
      <checklist/>
      </el-tab-pane>
      <el-tab-pane label="历史仪器期间核查列表" name="2">
      <checklisthistor/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import Checklist from '../component/Checklist.vue';
import Checklisthistor from "../component/Checklisthistor.vue";

export default {
  components: {Checklist, Checklisthistor},
  data() {
    return {
      //默认tab切换为1
      activeName: "1"
    };
  },
  created() {
    this.handleSearch();
  },
  methods: {
    //点击tab切换
    handleClick() {
      this.activeName = "2";
    },
    handleSearch() {}
  }
};
</script>

<style scoped lang="scss">
.clearfix {
  line-height: 40px;
  display: flex;
}
</style>
